
filename = r'D:\\code\\python_code\\val.txt'
list_file = open('val1.txt','w')
ms = open(filename).read().strip().split()
for m in ms:
	m1 = m.split('.')[0]
	# print(m1)
	list_file.write('%s\n' % (m1))

list_file.close()

